package com.bangcommunity.bbframe.common.base.attribute;

/**
 * @author tanghc
 */
public abstract class AbstractAttributeDesc implements IAttributeDesc {

    private String name;
    private Object value;
    private boolean canConvertToString;

    public AbstractAttributeDesc(String name, Object value) {
        this(name, value, false);
    }

    public AbstractAttributeDesc(String name, Object value, boolean canConvertToString) {
        this.name = name;
        this.value = value;
        this.canConvertToString = canConvertToString;
    }

    @Override
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    @Override
    public boolean getCanConvertToString() {
        return canConvertToString;
    }

    public void setCanConvertToString(boolean canConvertToString) {
        this.canConvertToString = canConvertToString;
    }
}
